package com.moons.uvcdemo.util.ThreadPool;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * Created by WilsonZhang on 2018/6/14.
 */

public class DefaultRejectdExecutionHandler implements RejectedExecutionHandler {

    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        System.out.println("DefaultRejectdExecutionHandler: " + "Task " + r.toString() +
                " rejected from " +
                executor.toString());

    }
}
